package com.zx.map.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.service.model.ProductModel;

public interface ProductService {

	/**
	 * 查找所有数据列表
	 * 
	 * @return
	 * @throws DataAccessException
	 */
	public List getAllList() throws DataAccessException;

	/**
	 * 根据单Key查找Model
	 * 
	 * @param key
	 * @return
	 * @throws DataAccessException
	 */
	public ProductModel getModelByKey(long key) throws DataAccessException;

	/**
	 * 根据Model查找列表
	 * 
	 * @param model
	 * @return
	 * @throws DataAccessException
	 */
	public List getListByModel(ProductModel model) throws DataAccessException;

}
